<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>循环</title>
    <script src="../js/angular.min.js"></script>
</head>
<body>
<div ng-app="" ng-init="names=['changjing','xiaowen','lanlan'];persons=[
{name:'changjing',city:'jiangsu'},
{name:'xiaowen',city:'jiangsu'},
{name:'lanlan',city:'anhui'}]">
<p>使用no-repeat来循环数组</p>
    <ul>
        <li ng-repeat="x in names">{{x}}</li>
    </ul>
    <ol>
        <li ng-repeat="y in persons">{{'姓名：'+y.name+',籍贯'+y.city}}</li>
    </ol>
</div>
</body>
</html>